FROM node:20
RUN apt-get install -y git
RUN git clone https://gitee.com/sj112538/chatbox-nuxt.git
WORKDIR /chatbox-nuxt
RUN npm config set registry https://registry.npm.taobao.org
RUN npm install
RUN npm run build
EXPOSE 3000
CMD ["npm", "run", "prod"]
